<template>
	<view>
		<uni-popup ref="uppush" @change="meetingOpen" mode="center">
			<view class="bgfff width880 text-left ra12">
				<image @click="$refs.uppush.close()" mode="widthFix"
					class="image posiab zindex15 right30 top20 width50" src="/static/img/bi.png"></image>
				<view class="size36 color333 bold  zindex5 flex-ju-c  pt30">
					加入会议
				</view> 
				<view class="pg50">
					<view class="posire mb50">
						<image mode="widthFix" class="image posiab top15 left20 width50" src="/static/img/duoren.png">
						</image>
						<input v-model="huiyihao" class="bgf6f7fa text-left pl90 mt50 height80" placeholder="请输入会议号码" />
					</view>
					<el-checkbox v-model="ismic" @change="changemic" label="入会时关闭麦克风" />
					<el-checkbox v-model="iscam" @change="changecam" label="入会时关闭摄像头" />
				</view>
				<view class="flex-ju-c pg50">
					<el-button @click="pushMeeting" type="primary" class="width1000 height80">加入</el-button>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		name:"push-meeting",
		data() {
			return {
				ismic: true,
				iscam:true,
				huiyihao: "",
			};
		},
		created() {
			
		},
		methods:{
			meetingOpen(){
				this.iscam =iscam
				this.ismic =ismic
			},
			changemic(e) {
				window.ismic=e
			},
			changecam(e) {
				window.iscam=e
			},
			open(){
				this.$refs.uppush.open()
			},
			close(){
				this.$refs.uppush.close()
			},
			pushMeeting(){
				if (!this.huiyihao) {
					uni.showToast({
						title: '输入会议号码',
						icon: 'none',
					})
					return
				}
				window.Invalidpin=0
				this.$emit('pushMeeting',this.huiyihao,this.ismic,this.iscam)
			}
		}
	}
</script>

<style>

</style>